import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  /* config options here */
  output: "export", // Comment out for standard server mode
  distDir: "out",   // Comment out for standard server mode
  eslint: {
    ignoreDuringBuilds: true, // 构建时忽略ESLint错误
  },
  typescript: {
    ignoreBuildErrors: true, // 临时禁用类型检查
  },
  images: {
    unoptimized: true, // For static export
    remotePatterns: [
      {
        protocol: 'https',
        hostname: 'gravatar.com',
        port: '',
        pathname: '/avatar/**',
      },
      {
        protocol: 'http',
        hostname: 'localhost',
        port: '3000',
        pathname: '/**',
      },
    ],
  },
};

export default nextConfig;
